# !/usr/bin/bash # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to show the company legal notice in login page # Dependency file - PolicyBanner.rtf # Note - Create a file and name it PolicyBanner.rtf (Spelling and extension should be same) # Configuration Type - COMPUTER sudo cp -av "./PolicyBanner.rtf" "/Library/Security" sudo chmod o+r /Library/Security/PolicyBanner.rtf errcode=$? if [ "$errcode" -ne 0 ]; then echo "" echo "Failed to copy with errorcode $errcode" 1>&2 echo "" exit 1 fi echo "Policy banner will be displayed in every login" 1>&2